<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title>会员注册</title>
<link href="templets/style/player_reg.css" rel="stylesheet" type="text/css" />
<script src="templets/js/j.js" language="javascript" type="text/javascript"></script>
<script src="templets/js/base.js" language="javascript" type="text/javascript"></script>
<script src='templets/js/CheckPassStrength.js' type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src='templets/js/reg_new.js'></script>

<link href="templets/style/bootstrap.min.css" rel="stylesheet" media="screen" type="text/css" />
<script language="javascript" type="text/javascript" src="templets/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="templets/js/bootstrap.min.js"></script>



<script type="text/javascript" language="javascript">
<!--
var reMethod = "<?php echo ($cfg_soft_lang == 'utf-8') ? 'POST' : 'GET';?>",pwdmin = <?php echo $cfg_mb_pwdmin; ?>;

function changeAuthCode() {
	var num = 	new Date().getTime();
	var rand = Math.round(Math.random() * 10000);
	num = num + rand;
	$('#ver_code').css('visibility','visible');
	if ($("#vdimgck")[0]) {
		$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
	}
	return false;	
}

function hideVc()
{
	$('#ver_code').css('visibility','hidden');
}


$(document).ready(function(){ 
	$("#passwordLevel").removeClass().addClass("rank r0");
	$("#vdcode").focus(function(){
	  var leftpos = $("#vdcode").position().left;
	  var toppos = $("#vdcode").position().top - 42;
	  $('#ver_code').css('left', leftpos+'px');
	  $('#ver_code').css('top', toppos+'px');
	  $('#ver_code').css('visibility','visible');
	});
	$("input[type='password']").click(function(){
	  hideVc()
	});
	$("#txtUsername").click(function(){
	  hideVc()
	});
	$("input[type='radio']").focus(function(){
	  hideVc()
	});
	/*
	$("#vdcode").blur(function(){
		  $('#ver_code').css('visibility','hidden');
	});
	*/
})

-->
</script>
</head>
<body>
<div class="container" >
	<div id="login" class="panel panel-default" >
		<div class="panel-heading">参赛者注册</div>
	  <div class="panel-body">
		<form method="post" action="reg_execution.php" id="regUser" name="form2" class="form-horizontal">
		  <input type="hidden" value="regbase" name="dopost"/>
		  <input type="hidden" value="1" name="step"/>
		  <input type="hidden" value="参赛者" name="mtype"/>
			<div class="form-group">
				<div class="alert alert-info col-sm-offset-2 col-sm-8" role="alert">(带<i class="red"> * </i>号的表示为必填项目，用户名必须大于3位小于20位，密码必须大于3位)</div>
			</div>
			
			<div class="form-group">
				<label for="txtUsername" class="col-sm-2 control-label"><i class="red">*</i> 用户名：</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" id="txtUsername" name="userid"/>
				</div>
			</div>
			<div class="form-group">
				<label for="uname" id="uwname" class="col-sm-2 control-label"><i class="red">*</i> 昵称：</label>
				<div class="col-sm-5">
				  <input type="text" class="form-control" size="20" id="uname" name="uname"/>
				  <em id="_uname"/>
				</div>
			 </div>
			<div class="form-group">
				<label for="txtPassword" class="col-sm-2 control-label"><i class="red">*</i> 登陆密码：</label>
				<div class="col-sm-5">
					<input type="password" onkeyup="setPasswordLevel(this, document.getElementById('passwordLevel'));" style="font-family: verdana;" class="form-control" id="txtPassword" name="userpwd"/>
				</div>
			  </div>
			<div class="form-group">
				<label class="col-sm-2 control-label">密码强度：</label>
				<input id="passwordLevel" class="rank r2" disabled="disabled" name="Input"/>
			</div>
			<div class="form-group">
				<label for="userpwdok" class="col-sm-2 control-label"><i class="red">*</i> 确认密码：</label>
				<div class="col-sm-5">
				  <input type="password" class="form-control" size="20" value="" id="userpwdok" name="userpwdok"/>
				  <em id="_userpwdok"><font color="red"><b></b></font></em>
				</div>
			</div>

			 <div class="form-group">
				<label for="email" class="col-sm-2 control-label"><i class="red">*</i> 电子邮箱：</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" id="email" name="email"/>
					<i class="red">*</i> <em id="_email">(每个电子邮邮箱只能注册一个帐号)</em> 
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">性别：</label>
				<div class="col-sm-5">
					<label class="radio-inline"><input type="radio" value="男" name="sex"/>男</label>
					<label class="radio-inline"><input type="radio" value="女" name="sex"/>女</label>
					<label class="radio-inline"><input type="radio" checked="checked" value="" name="sex"/>保密</label>  
				</div>
			</div>
			<?php
			if(preg_match("/1/",$safe_gdopen)){
			?>
			<div class="form-group">
				<label for="vdcode" class="col-sm-2 control-label">验证码：</label>
				<div class="col-sm-2 col-md-2">
					<input type="text" class="form-control" style=" text-transform: uppercase;" id="vdcode" name="vdcode"/>
				</div>
				<div class="col-sm-1 col-md-1">
					<img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清？点击更换" src="../include/vdimgck.php"/>
				</div>
				<div class="col-sm-2 col-md-2">
				看不清？ <a href="javascript:void(0)" onclick="changeAuthCode();">点击更换</a>
				</div>

			</div>
			<?php }?>
		
			<div class="col-sm-offset-2">
				<input type="submit" value="我要参赛" id="btnSignCheck" class="btn btn-default" />
			</div>
				  
			</div>
			
		</form>
	  </div>
	  <br class="clear"/>
	</div>
</div>

</html>